import request from '@/utils/request';

// /flightService/getSupplierList
// 获取供应商列表
export function getSupplierList(params) {
  return request('/flightService/getSupplierList', {
    method: 'get',
    params
  });
}

// /flightService/getTerminalFlightService
// 获取航站供应商列表
export function getTerminalFlightService(params) {
  return request('/flightService/getTerminalFlightService', {
    method: 'get',
    params
  });
}

// /flightService/getTerminalList
// 获取航站列表
export function getTerminalList(params) {
  return request('/flightService/getTerminalList', {
    method: 'get',
    params
  });
}

// /flightService/updateOrSaveSupplier
// 添加或修改供应商
export function updateOrSaveSupplier(data) {
  return request('/flightService/updateOrSaveSupplier', {
    method: 'put',
    data
  });
}